package com.yubest.designpattern.create.prototype;

/**
 * 原型类
 *
 * @Author: hweiyu
 * @Date: 2022/10/26 12:10
 */
public class Prototype {

    private Integer value;

    public Prototype(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    public Prototype copy() {
        return new Prototype(value);
    }
}
